package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:28 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceFileTypeConfig implements java.io.Serializable {

  public WorkspaceFileTypeConfig() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private String fileTypeName;

  /** Attribute fileTypeName Be Seted Falg */
  private boolean fileTypeNameSetted = false;

  /** Attribute fileTypeName is Null Falg */
  private boolean fileTypeNameNull = false;

  /**
   * Get fileTypeName
   *
   * @return String
   */
  public final String getFileTypeName() {

    if (isFileTypeNameNull()) {
      return null;
    } else {
      return StringUtils.trim(fileTypeName);
    }
  }

  /**
   * Set fileTypeName
   *
   * @param String
   */
  public final void setFileTypeName(String fileTypeName) {

    this.fileTypeName = StringUtils.trim(fileTypeName);

    this.fileTypeNameSetted = true;

    this.setFileTypeNameNull(this.fileTypeName == null);
  }

  /**
   * Get fileTypeName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isFileTypeNameSetted() {
    return this.fileTypeNameSetted;
  }

  /** Set fileTypeName Null */
  public final void setFileTypeNameNull() {

    this.fileTypeNameNull = true;
  }

  public final void setFileTypeNameNull(boolean aNullFlag) {

    this.fileTypeNameNull = aNullFlag;
  }

  public final boolean isFileTypeNameNull() {

    return this.fileTypeNameNull;
  }

  private String fileExtension;

  /** Attribute fileExtension Be Seted Falg */
  private boolean fileExtensionSetted = false;

  /** Attribute fileExtension is Null Falg */
  private boolean fileExtensionNull = false;

  /**
   * Get fileExtension
   *
   * @return String
   */
  public final String getFileExtension() {

    if (isFileExtensionNull()) {
      return null;
    } else {
      return StringUtils.trim(fileExtension);
    }
  }

  /**
   * Set fileExtension
   *
   * @param String
   */
  public final void setFileExtension(String fileExtension) {

    this.fileExtension = StringUtils.trim(fileExtension);

    this.fileExtensionSetted = true;

    this.setFileExtensionNull(this.fileExtension == null);
  }

  /**
   * Get fileExtension Has Been Setted
   *
   * @return boolean
   */
  public final boolean isFileExtensionSetted() {
    return this.fileExtensionSetted;
  }

  /** Set fileExtension Null */
  public final void setFileExtensionNull() {

    this.fileExtensionNull = true;
  }

  public final void setFileExtensionNull(boolean aNullFlag) {

    this.fileExtensionNull = aNullFlag;
  }

  public final boolean isFileExtensionNull() {

    return this.fileExtensionNull;
  }

  private String fileEditorMode;

  /** Attribute fileEditorMode Be Seted Falg */
  private boolean fileEditorModeSetted = false;

  /** Attribute fileEditorMode is Null Falg */
  private boolean fileEditorModeNull = false;

  /**
   * Get fileEditorMode
   *
   * @return String
   */
  public final String getFileEditorMode() {

    if (isFileEditorModeNull()) {
      return null;
    } else {
      return StringUtils.trim(fileEditorMode);
    }
  }

  /**
   * Set fileEditorMode
   *
   * @param String
   */
  public final void setFileEditorMode(String fileEditorMode) {

    this.fileEditorMode = StringUtils.trim(fileEditorMode);

    this.fileEditorModeSetted = true;

    this.setFileEditorModeNull(this.fileEditorMode == null);
  }

  /**
   * Get fileEditorMode Has Been Setted
   *
   * @return boolean
   */
  public final boolean isFileEditorModeSetted() {
    return this.fileEditorModeSetted;
  }

  /** Set fileEditorMode Null */
  public final void setFileEditorModeNull() {

    this.fileEditorModeNull = true;
  }

  public final void setFileEditorModeNull(boolean aNullFlag) {

    this.fileEditorModeNull = aNullFlag;
  }

  public final boolean isFileEditorModeNull() {

    return this.fileEditorModeNull;
  }

  private String fileTypeIcon;

  /** Attribute fileTypeIcon Be Seted Falg */
  private boolean fileTypeIconSetted = false;

  /** Attribute fileTypeIcon is Null Falg */
  private boolean fileTypeIconNull = false;

  /**
   * Get fileTypeIcon
   *
   * @return String
   */
  public final String getFileTypeIcon() {

    if (isFileTypeIconNull()) {
      return null;
    } else {
      return StringUtils.trim(fileTypeIcon);
    }
  }

  /**
   * Set fileTypeIcon
   *
   * @param String
   */
  public final void setFileTypeIcon(String fileTypeIcon) {

    this.fileTypeIcon = StringUtils.trim(fileTypeIcon);

    this.fileTypeIconSetted = true;

    this.setFileTypeIconNull(this.fileTypeIcon == null);
  }

  /**
   * Get fileTypeIcon Has Been Setted
   *
   * @return boolean
   */
  public final boolean isFileTypeIconSetted() {
    return this.fileTypeIconSetted;
  }

  /** Set fileTypeIcon Null */
  public final void setFileTypeIconNull() {

    this.fileTypeIconNull = true;
  }

  public final void setFileTypeIconNull(boolean aNullFlag) {

    this.fileTypeIconNull = aNullFlag;
  }

  public final boolean isFileTypeIconNull() {

    return this.fileTypeIconNull;
  }

  private String isCountLine;

  /** Attribute isCountLine Be Seted Falg */
  private boolean isCountLineSetted = false;

  /** Attribute isCountLine is Null Falg */
  private boolean isCountLineNull = false;

  /**
   * Get isCountLine
   *
   * @return String
   */
  public final String getIsCountLine() {

    if (isIsCountLineNull()) {
      return null;
    } else {
      return StringUtils.trim(isCountLine);
    }
  }

  /**
   * Set isCountLine
   *
   * @param String
   */
  public final void setIsCountLine(String isCountLine) {

    this.isCountLine = StringUtils.trim(isCountLine);

    this.isCountLineSetted = true;

    this.setIsCountLineNull(this.isCountLine == null);
  }

  /**
   * Get isCountLine Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIsCountLineSetted() {
    return this.isCountLineSetted;
  }

  /** Set isCountLine Null */
  public final void setIsCountLineNull() {

    this.isCountLineNull = true;
  }

  public final void setIsCountLineNull(boolean aNullFlag) {

    this.isCountLineNull = aNullFlag;
  }

  public final boolean isIsCountLineNull() {

    return this.isCountLineNull;
  }

  private String isCanDiff;

  /** Attribute isCanDiff Be Seted Falg */
  private boolean isCanDiffSetted = false;

  /** Attribute isCanDiff is Null Falg */
  private boolean isCanDiffNull = false;

  /**
   * Get isCanDiff
   *
   * @return String
   */
  public final String getIsCanDiff() {

    if (isIsCanDiffNull()) {
      return null;
    } else {
      return StringUtils.trim(isCanDiff);
    }
  }

  /**
   * Set isCanDiff
   *
   * @param String
   */
  public final void setIsCanDiff(String isCanDiff) {

    this.isCanDiff = StringUtils.trim(isCanDiff);

    this.isCanDiffSetted = true;

    this.setIsCanDiffNull(this.isCanDiff == null);
  }

  /**
   * Get isCanDiff Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIsCanDiffSetted() {
    return this.isCanDiffSetted;
  }

  /** Set isCanDiff Null */
  public final void setIsCanDiffNull() {

    this.isCanDiffNull = true;
  }

  public final void setIsCanDiffNull(boolean aNullFlag) {

    this.isCanDiffNull = aNullFlag;
  }

  public final boolean isIsCanDiffNull() {

    return this.isCanDiffNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceFileTypeConfig) == false) {
      return false;
    }
    WorkspaceFileTypeConfig other = (WorkspaceFileTypeConfig) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("fileTypeName=");
    buffer.append(this.fileTypeName);

    buffer.append("fileExtension=");
    buffer.append(this.fileExtension);

    buffer.append("fileEditorMode=");
    buffer.append(this.fileEditorMode);

    buffer.append("fileTypeIcon=");
    buffer.append(this.fileTypeIcon);

    buffer.append("isCountLine=");
    buffer.append(this.isCountLine);

    buffer.append("isCanDiff=");
    buffer.append(this.isCanDiff);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("]");

    return buffer.toString();
  }
}
